package com.markerhub.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.markerhub.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;
import com.markerhub.views.Taglist;
import com.markerhub.views.Typelist;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 关注公众号：MarkerHub
 * @since 2021-04-10
 */
public interface BlogService extends IService<Blog> {
    public List<Typelist> getTpyelist();
    public List<Taglist> getTaglist();
    public IPage<Blog> selectBlogs(long current, long size, String column, int sort,String querycontent);
    public Blog selectBlogbyId(Integer id);
    public IPage<Blog> selectBlogsbyType(long current, long size, String column, int sort,Integer type_id);
    public IPage<Blog> selectBlogsbyTag(long current, long size, String column, int sort,Integer tag_id);
    public void addBlog(String title, Integer uid,String content,String firstPicture,String flag,Boolean recommend,Boolean appreciation,Boolean commentabled,Integer tagId,Integer typeId,String shareStatement,String description);
    public void changeblog(Blog blog);
    public void deleteBlog(Integer blogid);
}
